﻿<!DOCTYPE html>
<html>
	<head>
	<meta name="renderer" content="webkit" />
	<meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1"/>
	<meta charset="UTF-8">
			<title>官方直营店 - 系统管理</title>
			<link rel="shortcut icon" type="image/x-icon" href="/public/admin/images/admin_icon.ico" media="screen"/>
		<link rel="stylesheet" type="text/css" href="../../static/css/bootstrap_4.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/bootstrap-responsive_4.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/common_4.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/font-awesome.min_4.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/seller_center_4.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/simple.switch.three_4.css" />
		<style>
		.wrapper{width:1268px;}
		.help-block{color:red;}
		.ncsc-admin-info{cursor: pointer;}
		.ncsc-path a{text-decoration:none;}
		.is-upgrade{width: 7px;height: 7px;background: red;border-radius: 50%;position: absolute;z-index: 5;bottom: 9px;display: none;}
		.modal-header:hover{cursor: move;}
		</style>
		<script src="../../static/js/jquery-1.8.1.min_5.js"></script>
		<script src="../../static/js/bootstrap_5.js"></script>
		<script src="../../static/js/bootstrapswitch_4.js"></script>
		<script src="../../static/js/simple.switch_4.js"></script>
		<script src="../../static/js/jquery.unobtrusive-ajax.min_4.js"></script>
		<script src="../../static/js/common_4.js"></script>
		<script src="../../static/js/seller_4.js"></script>
		<script src="../../static/js/load_task_4.js"></script>
		<script src="../../static/js/load_bottom.js" type="text/javascript"></script>
		<script src="../../static/js/jquery-ui.min_4.js"></script>
		<script src="../../static/js/ns_tool_4.js"></script>
		<script>
	/**
	 * 六星开源商城系统 - 团队十年电商经验汇集巨献!
	 * ========================================================= Copy right
	 * 2015-2025 湖南六星教育网络科技有限公司, 保留所有权利。
	 * ---------------------------------------------- 官方网址:
	 * http://www.sixstaredu.com 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用。
	 * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
	 * =========================================================
	 * 
	 * @author : 小学生Pack老师
	 * @date : 2016年12月16日 16:17:13
	 * @version : v1.0.0.0 商品发布中的第二步，编辑商品信息
	 */
	var PLATFORM_NAME = "官方直营店";
	var ADMINIMG = "/public/admin/images";//后台图片请求路径
	var ADMINMAIN = "http://tp.23673.com/admin";//后台请求路径
	var UPLOAD = "";//上传文件根目录
	var PAGESIZE = "20";//分页显示页数
	var ROOT = "";//跟目录

	//上传文件路径
	var UPLOADGOODS = 'upload/goods/';//存放商品图片
	var UPLOADGOODSSKU = 'upload/goods_sku/';//存放商品SKU
	var UPLOADGOODSBRAND = 'upload/goods_brand/';//存放商品品牌图
	var UPLOADGOODSGROUP = 'upload/goods_group/';////存放商品分组图片
	var UPLOADGOODSCATEGORY = 'upload/goods_category/';////存放商品分类图片
	var UPLOADCOMMON = 'upload/common/';//存放公共图片、网站logo、独立图片、没有任何关联的图片
	var UPLOADAVATOR = 'upload/avator/';//存放用户头像
	var UPLOADPAY = 'upload/pay/';//存放支付生成的二维码图片
	var UPLOADADV = 'upload/advertising/';//存放广告位图片
	var UPLOADEXPRESS = 'upload/express/';//存放物流图片
</script>
		
<style  type="text/css">
.set-style{
	width:100%;
}
.set-style dl{
	width:100%;
	font-size: 0;
	/* line-height: 20px; */
	clear: both;
	padding: 0;
	margin: 0;
	border-bottom: dotted 1px #E6E6E6;
	overflow: hidden;
}
.set-style dl dt{
	font-size: 12px;
	line-height: 32px;
	vertical-align: top;
	letter-spacing: normal;
	word-spacing: normal;
	text-align: right;
	display: inline-block;
	width: 19%;
	padding: 10px 1% 10px 0;
	margin: 0;
	font-weight:normal;
}
.set-style dl dd{
	
	font-size: 12px;
	line-height: 32px;
	vertical-align: top;
	letter-spacing: normal;
	word-spacing: normal;
	display: inline-block;
	width: 78%;
	padding: 10px 0 10px 0;
}
.set-style dl dd input[type="text"]{
	font: 12px/20px Arial;
	color: #777;
	background-color: #FFF;
	vertical-align: top;
	display: inline-block;
	height:24px;
	line-height:24px;
	padding: 4px;
	border: 1px solid #CCC;
	outline: 0 none;
	width: 400px;
	margin:0;
}
.set-style dl dd textarea{
    font: 12px/20px Arial;
    color: #777;
    background-color: #FFF;
    vertical-align: top;
    display: inline-block;
    height: 60px;
    padding: 4px;
    border: solid 1px #CCC;
    outline: 0 none;
	width: 400px;
	margin:0;
}
.hint{
    font-size: 12px;
    line-height: 16px;
    color: #BBB;
    margin-top: 10px;
}
.set-style dl dd p img{
	border: medium none;
	vertical-align: middle;
}
.class-logo{
	background-color: #FFF;
	position: relative;
	z-index: 1;
}
.class-logo p{
	width: 200px;
	height: 60px;
	line-height: 0;
	background-color: #FFF;
	text-align: center;
	vertical-align: middle;
	display: table-cell;
	*display: block;
	overflow: hidden;
	    margin: 0 0 10px;
		border: dashed 1px #E6E6E6;
}
.class-logo p img{
	max-width: 200px;
	max-height: 60px;
	border: medium none;
	vertical-align: middle;
	margin-top: expression(60-this.height/2);
	*margin-top: expression(30-this.height/2);
}
.edit_button{
	padding-top:10px;
	padding-bottom:10px;
	padding-left:30px;
	padding-right:30px;
	background-color:#51A351;
	color:#FFF;
	margin:20px auto;
	border:none;
	display:block;
}
.error{
	font-size: 12px;
    line-height: 16px;
    color: red;
    margin-top: 10px;
	display:none;
}
.set-style dl dd p{
	margin-bottom:0;
}
</style>
 
	</head>
<body>
<header class="ncsc-head-layout">
	<div class="wrapper">
		<div class="ncsc-admin">
			<div class="ncsc-admin-headimg">
							<img src="../../static/picture/default_user_portrait_4.gif"/>
						</div>
			<span class="user-name ncsc-admin-info" data-toggle="dropdown"></span>
			<a class="ncsc-admin-a ncsc-admin-info" data-toggle="dropdown"><i class="ncsc-admin-i ncsc-admin-down"></i></a>
			<a class="ncsc-admin-a h40"><i class="ncsc-admin-line"></i></a>
			<a class="ncsc-admin-a" href="http://tp.23673.com" target="_blank"><i class="ncsc-admin-i ncsc-admin-home"></i></a>
			<a class="ncsc-admin-a" href="http://tp.23673.com/admin/login/logout" title="安全退出管理中心"><i class="ncsc-admin-i ncsc-admin-off"></i></a>
			<div class="user-operation dropdown-menu">
				<a href="javascript:;" title="修改密码" onclick="editpassword()"><i class="fa fa-wrench"></i>修改密码</a>
				<a href="javascript:;" title="更新缓存" onclick="delcache()"><i class="fa fa-send"></i>更新缓存</a>
			</div>
		</div>
		<div class="center-logo">
			<a href="http://tp.23673.com/admin"><img src="../../static/picture/shop_logo_4.png"/></a>
		</div>
		<div class="index-search-container" style="position: relative;">
			<div class="index-sitemap" onclick="nav_open()">
				<a href="javascript:void(0);">导航管理<i class="icon-angle-down"></i></a>
				<div class="sitemap-menu" style="display: none; z-index: 1000;">
					<div class="title-bar" onclick="nav_close()">
						<h2>
							<i class="icon-sitemap"></i>管理导航<em></em>
						</h2>
						<span id="closeSitemap" class="close">X</span>
					</div>
					<div id="quicklink_list" class="content">
												<dl>
							<dt>首页</dt>
														<dd>
								<a href="http://tp.23673.com/admin/index/index"> 欢迎页</a>
							</dd>
													</dl>
												<dl>
							<dt>商品</dt>
														<dd>
								<a href="http://tp.23673.com/admin/goods/goodslist"> 商品列表</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/goods/addgoods"> 商品发布</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/goods/goodsgrouplist"> 商品标签</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/saleservice/consultlist"> 咨询管理</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/goods/goodscomment"> 商品评价</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/system/albumlist"> 相册管理</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/goods/recyclelist"> 商品回收站</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/goods/supplierlist"> 供货商</a>
							</dd>
													</dl>
												<dl>
							<dt>订单</dt>
														<dd>
								<a href="http://tp.23673.com/admin/order/orderlist"> 订单列表</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/express/expresscompany"> 物流公司</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/order/returnsetting"> 商家地址</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/shop/pickuppointlist"> 自提点管理</a>
							</dd>
													</dl>
												<dl>
							<dt>营销</dt>
														<dd>
								<a href="http://tp.23673.com/admin/promotion/coupontypelist"> 优惠券</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/promotion/mansonglist"> 满减送</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/promotion/getdiscountlist"> 限时折扣</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/promotion/fullshipping"> 满额包邮</a>
							</dd>
													</dl>
												<dl>
							<dt>店铺</dt>
														<dd>
								<a href="http://tp.23673.com/admin/shop/shopconfig"> 店铺设置</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/System/goodsRecommendClass"> 促销版块</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/config/shopadlist"> 广告管理</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/Config/shopNavigationList"> 导航管理</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/Shop/offlineStore"> 线下店铺</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/config/updatenotice"> 首页公告</a>
							</dd>
													</dl>
												<dl>
							<dt>用户</dt>
														<dd>
								<a href="http://tp.23673.com/admin/auth/userlist"> 用户列表</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/auth/authgrouplist"> 用户组列表</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/auth/userdetail"> 个人资料</a>
							</dd>
													</dl>
												<dl>
							<dt>资产</dt>
														<dd>
								<a href="http://tp.23673.com/admin/account/shopaccount"> 店铺收入</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/account/shopsalesaccount"> 销售概况</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/account/shopgoodssaleslist"> 商品分析</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/account/shopreport"> 运营报告</a>
							</dd>
														<dd>
								<a href="http://tp.23673.com/admin/account/shopgoodssalesrank"> 销售排行</a>
							</dd>
													</dl>
												<dl>
							<dt>系统</dt>
														<dd>
								<a href="http://tp.23673.com/admin/system/modulelist"> 模块列表</a>
							</dd>
													</dl>
											</div>
				</div>
			</div>
			<div class="search-bar">
				<input type="hidden" name="act" value="search" /> 
				<input type="text" id="search_goods" name="keyword" placeholder="商品搜索" class="search-input-text" />
				<input type="submit" class="search-input-btn pngFix" onclick="search()" value="" />
			</div>
		</div>
		<nav class="ncsc-nav">
						<dl onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/index/index">首页</a>
									</dt>
			</dl>
						<dl onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/goods/goodslist">商品</a>
									</dt>
			</dl>
						<dl onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/order/orderlist">订单</a>
									</dt>
			</dl>
						<dl onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/promotion/coupontypelist">营销</a>
									</dt>
			</dl>
						<dl onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/shop/shopconfig">店铺</a>
									</dt>
			</dl>
						<dl onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/auth/userlist">用户</a>
									</dt>
			</dl>
						<dl onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/account/shopsalesaccount">资产</a>
									</dt>
			</dl>
						<dl class="current_nav" onmouseover="add_nav_class(this)" onmouseout="remove_nav_class(this)">
				<dt>
					<a href="http://tp.23673.com/admin/system/modulelist">系统</a>
									</dt>
				<dd class="arrow"></dd>
			</dl>
					</nav>
	</div>
</header>

<!-- 左边菜单的加载 -->
<div class="MAIN" style="min-height: 94vh;">
	
	<div class="LEFT">
		<div id="accordion2" class="accordion leftmenu">
			<div class="accordion-group">
				<div class="sidebarX">
										<img src="../../static/picture/admin_left_logo_4.png" />
										<h2>系统</h2>
				</div>
				<div class="accordion-body collapse in" id="collapseOne">
					<ul class="nav nav-pills nav-stacked" id="left_menu-small">
												<li class="active"><h1></h1><a href="http://tp.23673.com/admin/system/modulelist">模块列表</a></li>
											</ul>
				</div>
			</div>
		</div>
	</div>
	
	<!-- 右边主要内容的加载 -->
	<div class="RIGHT">
		<div class="ncsc-path">
			<a href="http://tp.23673.com/admin"><i class="icon-desktop"></i>官方直营店</a>
						<i class="icon-angle-right"></i>
			<a href="http://tp.23673.com/admin/system/modulelist">系统</a>
						<i class="icon-angle-right"></i>
				<!-- 需要加跳转链接用这个：http://tp.23673.com/admin/system/addmodule -->
				<a href="javascript:;">添加模块</a>
					</div>
		<!--顶部边框开始  -->
		<div class="tabmenu">
			<ul class="tab pngFix">
								<li class="active"><a href="http://tp.23673.com/admin/system/addmodule?pid=0">添加模块</a></li>
							</ul>
			<div class="right_side_operation">
				<ul>
					
					<li><a class="nscs-table-handle_green" href="javascript:;" style="display: none;">右侧按钮测试</a></li>
					
				</ul>
			</div>
		</div>
		<hr class="tabmenu_hr" style="border:1px solid #00C0FF;margin:0 0px 10px 20px;"  />
		<div class="main">
			
<div class="set-style">
	<dl>
		<dt>模块名:</dt>
		<dd>
			<p><input name="UserCode" id="module_name" type="text"> </p>
			<p class="error">请输入模块名</p>
		</dd>
	</dl>
	<dl>
		<dt>上级菜单:</dt>
		<dd>
			<p>
				<select class="form-control input-sm" id="pid">
					<option value="0">顶级菜单</option> 					<option value="467">&nbsp;&nbsp;&nbsp;首页</option>
										<option value="515">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;欢迎页</option>
										<option value="149">&nbsp;&nbsp;&nbsp;商品</option>
										<option value="150">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品列表</option>
										<option value="151">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品发布</option>
										<option value="171">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品标签</option>
										<option value="334">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;咨询管理</option>
										<option value="478">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品评价</option>
										<option value="139">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;相册管理</option>
										<option value="516">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品回收站</option>
										<option value="10007">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;供货商</option>
										<option value="184">&nbsp;&nbsp;&nbsp;订单</option>
										<option value="185">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;订单列表</option>
										<option value="189">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;物流公司</option>
										<option value="471">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商家地址</option>
										<option value="528">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;自提点管理</option>
										<option value="179">&nbsp;&nbsp;&nbsp;营销</option>
										<option value="180">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;优惠券</option>
										<option value="446">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;积分管理</option>
										<option value="195">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;赠品</option>
										<option value="198">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;满减送</option>
										<option value="201">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;限时折扣</option>
										<option value="469">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;满额包邮</option>
										<option value="218">&nbsp;&nbsp;&nbsp;店铺</option>
										<option value="418">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺设置</option>
										<option value="10006">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;促销版块</option>
										<option value="678">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;广告管理</option>
										<option value="10022">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导航管理</option>
										<option value="10025">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;线下店铺</option>
										<option value="474">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;首页公告</option>
										<option value="519">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;货到付款区域</option>
										<option value="126">&nbsp;&nbsp;&nbsp;用户</option>
										<option value="127">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户列表</option>
										<option value="128">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用户组列表</option>
										<option value="398">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;个人资料</option>
										<option value="409">&nbsp;&nbsp;&nbsp;资产</option>
										<option value="684">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;店铺收入</option>
										<option value="459">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;销售概况</option>
										<option value="463">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商品分析</option>
										<option value="461">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;同行热卖</option>
										<option value="462">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;运营报告</option>
										<option value="454">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;销售统计</option>
										<option value="403">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;销售排行</option>
										<option value="120">&nbsp;&nbsp;&nbsp;系统</option>
										<option value="121">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;模块列表</option>
									</select>
			</p>
		</dd>
	</dl>
	<dl>
		<dt>控制器名:</dt>
		<dd>
			<p><input name="UserCode" id="controller" type="text"></p>
			<p class="error">请输入控制器名</p>
		</dd>
	</dl>
	<dl>
		<dt>方法名:</dt>
		<dd>
			<p><input name="UserCode" id="method" type="text"></p>
			<p class="error">请输入方法名</p>
		</dd>
	</dl>
	<dl>
		<dt>URL:</dt>
		<dd>
			<p><input name="UserCode" id="url" type="text"></p>
			<p class="error">请输入url地址</p>
		</dd>
	</dl>
	<dl>
		<dt>是否是菜单:</dt>
		<dd>
			<p><input type="checkbox" id="is_menu" class="checkbox"></p>
		</dd>
	</dl>
	<dl>
		<dt>是否控制权限:</dt>
		<dd>
			<p>
					<input id="is_control_auth" type="checkbox" class="checkbox" checked="checked" />
			</p>
		</dd>
	</dl>
	<dl>
		<dt>是否仅开发者模式可见:</dt>
		<dd>
			<p><input id="is_dev" type="checkbox" class="checkbox"  checked="checked" /></p>
		</dd>
	</dl>
	<dl>
		<dt>排序:</dt>
		<dd>
			<p><input name="UserCode" id="sort" type="number" value="0"></p>
			<p class="error">请输入序号</p>
		</dd>
	</dl>
	<dl>
		<dt>图片:</dt>
		<dd>
			<div class="class-logo"><p><img id="imgLogo"src="" ></p></div>
			<div class="ncsc-upload-btn"> 
			    <a href="javascript:void(0);"><span>
			          <input hidefocus="true" size="1" class="input-file" name="file_upload" id="uploadImg" nc_type="change_store_label" type="file" onchange="imgUpload(this);">
			        <input type="hidden"id="Logo"value=""/></span><p>
			        <i class="fa fa-cloud-upload text"></i>上传图片</p>
			    </a> 
			</div>
			<p class="hint"><br><span style="color:orange;">建议使用宽50像素-高50像素内的GIF或PNG透明图片；点击下方"提交"按钮后生效。</span></p>
		</dd>
	</dl>
	<dl>
		<dt>描述:</dt>
		<dd>
			<p><textarea id="desc"></textarea></p>
			<p class="error">请输入模块描述</p>
		</dd>
	</dl>
	<button class="edit_button" onclick="addModuleAjax()">提交</button>
</div>
<script src="../../static/js/ajax_file_upload_3.js" type="text/javascript"></script>
<script src="../../static/js/file_upload_3.js" type="text/javascript"></script>

<script>
	/**
	*图片上传
	*/
	function imgUpload(event) {
		var fileid = $(event).attr("id");
		var data = { 'file_path' : UPLOADCOMMON };
		uploadFile(fileid,data,function(res){
			if(res.code){
				$("#imgLogo").attr("src","/"+res.data);
				$("#Logo").val(res.data);
				showTip(res.message,"success");
			}else{
				showTip(res.message,"error");
			}
		});
	}
	/**
	*模块输入信息验证
	*/
	function verify(module_name, controller, method, url,  sort, desc){
		if(module_name == ''){
			$("#module_name").parent().next().show();
			return false;
		}else{
			$(".error").hide();
		}
		if(controller == ''){
			$("#controller").parent().next().show();
			return false;
		}else{
			$(".error").hide();
		}
		if(method == ''){
			$("#method").parent().next().show();
			return false;
		}else{
			$(".error").hide();
		}
		if(url == ''){
			$("#url").parent().next().show();
			return false;
		}else{
			$(".error").hide();
		}
// 		if(sort == ''){
// 			$("#sort").parent().next().show();
// 			return false;
// 		}else{
// 			$(".error").hide();
// 		}
// 		if(desc == ''){
// 			$("#desc").parent().next().show();
// 			return false;
// 		}else{
// 			$(".error").hide();
// 		}
		return true;
	}
	var flag = false;//防止重复提交
	/**
	*添加模块
	*/
	function addModuleAjax() {
		var pid = $("#pid").val();
		var module_name = $("#module_name").val();
		var controller = $("#controller").val();
		var method = $("#method").val();
		var url = $("#url").val();
		var is_menu = $("#is_menu").val();//是否是菜单
		var is_control_auth = 1;//是否控制权限，默认控制
		var is_dev = $("#is_dev").val();//是否仅开发者模式可见
		var sort = $("#sort").val();
		var desc = $("#desc").val();
		if($("#is_menu").prop("checked")){
			var is_menu = 1;
		}else{
			var is_menu = 0;
		}
		if(!$("#is_control_auth").prop("checked")){
			is_control_auth = 0;
		}
		if($("#is_dev").prop("checked")){
			var is_dev = 1;
		}else{
			var is_dev = 0;
		}
		var module_picture = $("#Logo").val();
		if(verify(module_name, controller, method, url, sort, desc)){
			if(flag){
				return;
			}
			flag = true;
			$.ajax({
				type : "post",
				url : "http://tp.23673.com/admin/system/addmodule",
				data : {
					'pid' : pid,
					'module_name' : module_name,
					'controller' : controller,
					'method' : method,
					'url' : url,
					'is_menu' : is_menu,
					'is_control_auth' : is_control_auth,
					'is_dev' : is_dev,
					'sort' : sort,
					'module_picture' : module_picture,
					'desc' : desc
				},
				success : function(data) {
					if (data["code"] > 0) {
						showMessage('success', data["message"],"http://tp.23673.com/admin/system/modulelist");
					}else{
						showMessage('error', data["message"]);
					}
					flag = false;
				}
			});
		}
	}
</script>

		</div>
		<script src="../../static/js/page_4.js"></script>
<div class="page" id="turn-ul" style="display: none;">
	<div class="pagination pagination-right">
		<ul>
			<li class="total-data">共0有条数据</li>
			<li class="according-number">每页显示<input type="text" class="input-medium" id="showNumber" value="20" data-default="20" />条</li>
			<li><a id="beginPage" class="page-disable" style="border: 1px solid #dddddd;">首页</a></li>
			<li><a id="prevPage" class="page-disable">上一页</a></li>
			<li id="pageNumber"></li>
			<li><a id="nextPage">下一页</a></li>
			<li><a id="lastPage">末页</a></li>
			<li class="page-count">共0页</li>
		</ul>
	</div>
</div>
<input type="hidden" id="page_count" />
<input type="hidden" id="page_size" />
<script>
$(function() {
	try{
		$("#turn-ul").show();//显示分页
		LoadingInfo(1);//通过此方法调用分页类
	}catch(e){
		$("#turn-ul").hide();
	}
	
	//首页
	$("#beginPage").click(function() {
		if(jumpNumber!=1){
			jumpNumber = 1;
			LoadingInfo(1);
			changeClass("begin");
		}
		return false;
	});

	//上一页
	$("#prevPage").click(function() {
		var obj = $(".currentPage");
		var index = parseInt(obj.text()) - 1;
		if (index > 0) {
			obj.removeClass("currentPage");
			obj.prev().addClass("currentPage");
			jumpNumber = index;
			LoadingInfo(index);
			//判断是否是第一页
			if (index == 1) {
				changeClass("prev");
			} else {
				changeClass();
			}
		}
		return false;
	});

	//下一页
	$("#nextPage").click(function() {
		var obj = $(".currentPage");
		//当前页加一（下一页）
		var index = parseInt(obj.text()) + 1;
		if (index <= $("#page_count").val()) {
			jumpNumber = index;
			LoadingInfo(index);
			obj.removeClass("currentPage");
			obj.next().addClass("currentPage");
			//判断是否是最后一页
			if (index == $("#page_count").val()) {
				changeClass("next");
			} else {
				changeClass();
			}
		}
		return false;
	});

	//末页
	$("#lastPage").click(function() {
		jumpNumber = $("#page_count").val();
		if(jumpNumber>1){
			LoadingInfo(jumpNumber);
			$("#pageNumber a:eq("+ (parseInt($("#page_count").val()) - 1) + ")").text($("#page_count").val());
			changeClass("next");
		}
		return false;
	});

	//每页显示页数
	$("#showNumber").blur(function(){
		if(isNaN($(this).val())){
			$("#showNumber").val(20);
			jumpNumber = 1;
			LoadingInfo(jumpNumber);
			return;
		}
		//页数没有变化的话，就不要再执行查询
		if(parseInt($(this).val()) != $(this).attr("data-default")){
// 			jumpNumber = 1;//设置每页显示的页数，并且设置到第一页
			$(this).attr("data-default",$(this).val());
			LoadingInfo(jumpNumber);
		}
		return false;
	}).keyup(function(event){
		if(event.keyCode == 13){
			if(isNaN($(this).val())){
				$("#showNumber").val(20);
				jumpNumber = 1;
				LoadingInfo(jumpNumber);
			}
			//页数没有变化的话，就不要再执行查询
			if(parseInt($(this).val()) != $(this).attr("data-default")){
// 				jumpNumber = 1;//设置每页显示的页数，并且设置到第一页
				$(this).attr("data-default",$(this).val());
				//总数据数量
				var total_count = parseInt($(".total-data").attr("data-total-count"));
				//计算用户输入的页数是否超过当前页数
				var curr_count = Math.ceil(total_count/parseInt($(this).val()));
				if( curr_count !=0 && curr_count < jumpNumber){
					jumpNumber = curr_count;//输入的页数超过了，没有那么多
				}
				LoadingInfo(jumpNumber);
			}
		}
		return false;
	});
});

//跳转页面
function JumpForPage(obj) {
	jumpNumber = $(obj).text();
	LoadingInfo($(obj).text());
	$(".currentPage").removeClass("currentPage");
	$(obj).addClass("currentPage");
	if (jumpNumber == 1) {
		changeClass("prev");
	} else if (jumpNumber < parseInt($("#page_count").val())) {
		changeClass();
	} else if (jumpNumber == parseInt($("#page_count").val())) {
		changeClass("next");
	}
}

</script>
		
		<!-- 公共的操作提示弹出框 common-success：成功，common-warning：警告，common-error：错误，-->
		<div class="common-tip-message js-common-tip">
			<div class="inner"></div>
		</div>
	</div>
</div>

<!--修改密码弹出框 -->
<div id="edit-password" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		<h3 id="myModalLabel">修改密码</h3>
	</div>
	<div class="modal-body">
		<form class="form-horizontal">
			<div class="control-group">
				<label class="control-label" for="inputPassword"><span class="color-red">*</span>原密码</label>
				<div class="controls">
					<input type="password" id="pwd0" placeholder="请输入原密码" />
					<span class="help-block"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword"><span class="color-red">*</span>新密码</label>
				<div class="controls">
					<input type="password" id="pwd1" placeholder="请输入新密码" />
					<span class="help-block"></span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword"><span class="color-red">*</span>再次输入密码</label>
				<div class="controls">
					<input type="password" id="pwd2" placeholder="请输入确认密码" />
					<span class="help-block"></span>
				</div>
			</div>
			<div style="text-align: center; height: 20px;" id="show"></div>
		</form>
	</div>
	<div class="modal-footer">
		<button class="btn btn-info" onclick="submitPassword()"  style="display:inline-block;">保存</button>
		<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
	</div>
</div>

<!--修改密码弹框结束  -->
<div class="footer">
	<div id="faq" style="background: #eee; padding-top: 10px;">
		<div class="faq-wrapper"></div>
	</div>
	<div id="footer" class="wrapper">
		<p>
					</p>
		<p style="color:#333333; display: none;" id="bottom_copyright">Copyright © 2015-2025 六星开源商城&nbsp;版权所有 保留一切权利<br><a href="http://www.sixstaredu.com" target="_blank" style="text-decoration: none;color:#333333;">湖南六星教育网络科技有限公司&nbsp;</a>
			<span>提供技术支持&nbsp;0731-8557-3019</span>
		</p>
	</div>
</div>

<link rel="stylesheet" type="text/css" href="../../static/css/jquery-ui-private_4.css">
<script>
var platform_shopname= '六星开源商城';
</script>
<script type="text/javascript" src="../../static/js/jquery-ui-private_4.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/jquery.timers_4.js"></script>
<div id="dialog"></div>
<script type="text/javascript">
function showMessage(type, message,url,time){
	if(url == undefined){
		url = '';
	}
	if(time == undefined){
		time = 2;
	}
	//成功之后的跳转
	if(type == 'success'){
		$( "#dialog" ).dialog({
			buttons: {
				"确定,#51A351": function() {
					$(this).dialog('close');
				}
			},
			contentText:message,
			time:time,
			timeHref: url,
		});
	}
	//失败之后的跳转
	if(type == 'error'){
		$( "#dialog" ).dialog({
			buttons: {
				"确定,#e57373": function() {
					$(this).dialog('close');
				}
			},
			time:time,
			contentText:message,
			timeHref: url,
		});
	}
}

function showConfirm(content){
	$( "#dialog" ).dialog({
		buttons: {
			"确定": function() {
				$(this).dialog('close');
				return 1;
			},
			"取消,#e57373": function() {
				$(this).dialog('close');
				return 0;
			}
		},
		contentText:content,
	});
}
</script>
<script src="../../static/js/ns_common_base_4.js"></script>
<script>
$(function(){
	
	$('.index-sitemap > a').bind("click", function() {
		$(".sitemap-menu-arrow").slideDown("slow");
		$(".sitemap-menu").slideDown("slow");
	});
	$('.add-quickmenu > a').bind("click", function() {
		$(".sitemap-menu-arrow").slideDown("slow");
		$(".sitemap-menu").slideDown("slow");
	});
	$('#closeSitemap').bind("click", function() {
		$(".sitemap-menu-arrow").slideUp("fast");
		$(".sitemap-menu").slideUp("fast");
	});
});
function add_nav_class(doc) {
	$(doc).addClass("hover");
}

function remove_nav_class(doc) {
	$(doc).removeClass("hover");
}

// 显示导航管理
function nav_open() {
	var one = new Array();
	var two = new Array();
	var three = new Array();
	$(".ncsc-head-layout .sitemap-menu dl").each(function(c, e) {
		if (c < 5) {
			one.push($(e).height());
		} else if (c > 4 && c < 10) {
			two.push($(e).height());
		} else if (c > 9 && c < 15) {
			three.push($(e).height());
		}
	})
	$(".ncsc-head-layout .sitemap-menu dl").each(function(c, e) {
		if (c < 5) {
			var one_max_height = Math.max.apply(Math, one);
			$(e).height(one_max_height);
		} else if (c > 4 && c < 10) {
			var two_max_height = Math.max.apply(Math, two);
			$(e).height(two_max_height);
		} else if (c > 9 && c < 15) {
			var three_max_height = Math.max.apply(Math, three);
			$(e).height(three_max_height);
		}
	})
	$(".sitemap-menu-arrow").show();
	$(".sitemap-menu").show();
}
// 隐藏导航管理
function nav_close() {
	$(".sitemap-menu-arrow").hide();
	$(".sitemap-menu").hide();
}
// 系统注销菜单的控制
var closetimer = 0;
function exitSystemOver() {
	cancelColseMenu();
	$("#exit_System").css("display", "block");
};

function exitSystemOut() {
	closetimer = window.setTimeout(mclose, 600);
};

function cancelColseMenu() {
	window.clearTimeout(closetimer);
	closetimer = null;
};

function mclose() {
	$("#exit_System").css("display", "none");
}
</script>

</body>
</html>